package com.yozinga.service;


public enum Actions {

	ACTION_GET_APP("com.yozinga.GetApp"),
	ACTION_CREATE_APP("com.yozinga.CreateApp"),
	ACTION_UPDATE_APP("com.yozinga.UpdateApp"),
	ACTION_GET_BUSINESS_TYPES("com.yozinga.GetBusinessTypes"),
	ACTION_GET_LISTMERCHANTS_BYLOCATION("com.yozinga.ListMerchantsByLocation"),
	ACTION_GET_ABOUT_YOZINGA("com.yozinga.aboutyozinga"),
	ACTION_GET_LIST_OFFERSBY_MERCHANT("com.yozinga.listoffersbymerchant"),
	ACTION_GET_SUB_CATEGORY_BY_BUSINESSTYPE("com.yozinga.ListSubCategoryByBusinessType"),
	ACTION_REDEEM_OFFER("com.yozinga.redeemoffer"),
	ACTION_REVIEW_OFFER("com.yozinga.reviewoffer");
	


	private String text;

	Actions(String text) {
		this.text = text;
	}

	public String getText() {
		return this.text;
	}

	public static Actions fromString(String text) {
		if (text != null) {
			for (Actions b : Actions.values()) {
				if (text.equalsIgnoreCase(b.text)) {
					return b;
				}
			}
		}
		return null;
	}

}
